import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import home from './modules/home'
import type from './modules/type'
import product from './modules/product'



Vue.use(Vuex)

export default new Vuex.Store({
    state: state,
    actions: actions,
    mutations: mutations,
    modules:{
        // 装载 仓库模块，并定义命名空间名称
        home:home,
        type:type,
        product:product
    }
})
